<?php
defined ( '_FW_EXEC' ) or die ( 'Restricted access' );
RClassesImporter::cls("dbo.dtos.UserDTO" );

class AuthenticateModel {
	
	function register($username, $pass, $re_pass, $name, $address, $phone, $email) {
		
//		$sQuery		=	"INSERT INTO user(username, password, email, name, phone, joint_time, address, group_id)
//					values ('{$username}', '{$pass}', '{$re_pass}', '{$name}', '{$address}', '{$phone}', '{$email}') ";
//		return SysDatabase::execute( $sQuery );
		
	}	
	
	function getbdsDetails($id) {
		$my_Obj = new bdsDTO();
		$my_Obj->setKeyValue($id);
		SysDatabase::fillData($my_Obj);
		return $my_Obj;
	}
	
	
	function saveUserDTO($dto){
		return SysDatabase::saveDTO($dto);
	}
		
	
	function getTranscationLog($id) {
		$finder = new TranscationFinder();
		$finder->member_id = $id;
		return SysDatabase::getSelectResult($finder->getSelectSQL());
	}
}
?>